﻿using ArtMath.Core.Data;
using ArtMath.Setting;
using System.Drawing;
using System.Windows.Forms;

namespace ArtMath.AuxiliaryTool
{
    public class Ring : ToolBase
    {
        PointD center;
        //double r = Settings.Instance.RingRadius;
        //Color cl = Color.Black;
        //bool visible;
        public bool Visible { get; set; }
        public double Radius { get; set; } = Settings.Instance.RingRadius;
        public Color Color { get; set; } = Color.Black;
        public override void Paint(Graphics gra)
        {
            if (Visible)
            {
                gra.DrawEllipse(new Pen(Color, 1), (float)(center.X - Radius), (float)(center.Y - Radius), (float)(2 * Radius), (float)(2 * Radius));
            }
        }
        public override void MouseMove(MouseMoveEventArgs e)
        {
            center = e.CurrentPosition;
            base.MouseMove(e);
        }
    }
}
